package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ErpWarehouseBasicinfoMapper;
import com.ruoyi.system.domain.ErpWarehouseBasicinfo;
import com.ruoyi.system.service.IErpWarehouseBasicinfoService;

/**
 * 仓库管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-16
 */
@Service
public class ErpWarehouseBasicinfoServiceImpl implements IErpWarehouseBasicinfoService 
{
    @Autowired
    private ErpWarehouseBasicinfoMapper erpWarehouseBasicinfoMapper;

    /**
     * 查询仓库管理
     * 
     * @param id 仓库管理主键
     * @return 仓库管理
     */
    @Override
    public ErpWarehouseBasicinfo selectErpWarehouseBasicinfoById(Long id)
    {
        return erpWarehouseBasicinfoMapper.selectErpWarehouseBasicinfoById(id);
    }

    /**
     * 查询仓库管理列表
     * 
     * @param erpWarehouseBasicinfo 仓库管理
     * @return 仓库管理
     */
    @Override
    public List<ErpWarehouseBasicinfo> selectErpWarehouseBasicinfoList(ErpWarehouseBasicinfo erpWarehouseBasicinfo)
    {
        return erpWarehouseBasicinfoMapper.selectErpWarehouseBasicinfoList(erpWarehouseBasicinfo);
    }

    /**
     * 新增仓库管理
     * 
     * @param erpWarehouseBasicinfo 仓库管理
     * @return 结果
     */
    @Override
    public int insertErpWarehouseBasicinfo(ErpWarehouseBasicinfo erpWarehouseBasicinfo)
    {
        return erpWarehouseBasicinfoMapper.insertErpWarehouseBasicinfo(erpWarehouseBasicinfo);
    }

    /**
     * 修改仓库管理
     * 
     * @param erpWarehouseBasicinfo 仓库管理
     * @return 结果
     */
    @Override
    public int updateErpWarehouseBasicinfo(ErpWarehouseBasicinfo erpWarehouseBasicinfo)
    {
        return erpWarehouseBasicinfoMapper.updateErpWarehouseBasicinfo(erpWarehouseBasicinfo);
    }

    /**
     * 批量删除仓库管理
     * 
     * @param ids 需要删除的仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteErpWarehouseBasicinfoByIds(Long[] ids)
    {
        return erpWarehouseBasicinfoMapper.deleteErpWarehouseBasicinfoByIds(ids);
    }

    /**
     * 删除仓库管理信息
     * 
     * @param id 仓库管理主键
     * @return 结果
     */
    @Override
    public int deleteErpWarehouseBasicinfoById(Long id)
    {
        return erpWarehouseBasicinfoMapper.deleteErpWarehouseBasicinfoById(id);
    }
}
